MarkerLayer

Displays markers on the map. It is responsible for positioning markers correctly, marker selections and group marker operations.

Constructors

this
this(ShumateMarkerLayer* shumateMarkerLayer, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Viewport viewport)

Creates a new instance of #ShumateMarkerLayer.

this
this(Viewport viewport, GtkSelectionMode mode)

Creates a new instance of #ShumateMarkerLayer with the specified selection mode.

Members

Functions

addMarker
void addMarker(Marker marker)

Adds the marker to the layer.

addOnMarkerSelected
gulong addOnMarkerSelected(void delegate(Marker, MarkerLayer) dlg, ConnectFlags connectFlags)

Emitted when a marker in the layer is selected.

addOnMarkerUnselected
gulong addOnMarkerUnselected(void delegate(Marker, MarkerLayer) dlg, ConnectFlags connectFlags)

Emitted when a marker in the layer is unselected.

animateInAllMarkers
void animateInAllMarkers()

Fade in all markers in the layer with an animation

animateOutAllMarkers
void animateOutAllMarkers()

Fade out all markers in the layer with an animation

getMarkerLayerStruct
ShumateMarkerLayer* getMarkerLayerStruct(bool transferOwnership)

Get the main Gtk struct

getMarkers
ListG getMarkers()

Gets a copy of the list of all markers inserted into the layer. You should free the list but not its contents.

getSelected
ListG getSelected()

Gets a list of selected markers in the layer.

getSelectionMode
GtkSelectionMode getSelectionMode()

Gets the selection mode of the layer.

getStruct
void* getStruct()

the main Gtk struct as a void*

hideAllMarkers
void hideAllMarkers()

Hides all the markers in the layer

removeAll
void removeAll()

Removes all markers from the layer.

removeMarker
void removeMarker(Marker marker)

Removes the marker from the layer.

selectAllMarkers
void selectAllMarkers()

Selects all selectable markers in the layer.

selectMarker
bool selectMarker(Marker marker)

Selects a marker in this layer.

setAllMarkersDraggable
void setAllMarkersDraggable()

Sets all markers draggable in the layer

setAllMarkersUndraggable
void setAllMarkersUndraggable()

Sets all markers undraggable in the layer

setSelectionMode
void setSelectionMode(GtkSelectionMode mode)

Sets the selection mode of the layer.

showAllMarkers
void showAllMarkers()

Shows all markers in the layer

unselectAllMarkers
void unselectAllMarkers()

Unselects all markers in the layer.

unselectMarker
void unselectMarker(Marker marker)

Unselects a marker in this layer.

Static functions

getType
GType getType()

Variables

shumateMarkerLayer
ShumateMarkerLayer* shumateMarkerLayer;

the main Gtk struct

Inherited Members

From Layer

shumateLayer
ShumateLayer* shumateLayer;

the main Gtk struct

getLayerStruct
ShumateLayer* getLayerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getViewport
Viewport getViewport()

Gets the #ShumateViewport used by this layer.

Meta